import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import installElementPlus from './plugins/element.js'
import axios from 'axios'
import VueAxios from 'vue-axios';
import {Base64} from 'js-base64'

import echarts from 'echarts'
import china from 'echarts/map/json/china.json'


const app = createApp(App)
installElementPlus(app)
app.use(store).use(router).use(VueAxios, axios).mount('#app')

app.config.globalProperties.$Base64 = Base64
app.config.globalProperties.$echarts = echarts

echarts.registerMap('china',china)

// echarts.registerMap('china',china)

// eslint-disable-next-line no-unused-vars
router.afterEach((to,from,next) => {
	window.scrollTo(0,0);
});

